class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}
		
		"/home/$page?" (controller: 'home')
		
		"/"(controller: "home")
		
		"/login/$action?" (controller: "login" )
		"/logout/$action?"(controller: "logout")

		//"/"(view:"/index")
		"500"(view:'/error')
	}
}
